package org.batatasframework.web.element;


public class SelectOptgroup extends AbstractElementCollection<SelectOptitem> implements SelectOption{

	public SelectOptgroup(SelectOptitem ...items) {
		super("optgroup");
		
		addElement(items);
	}

	@Override
	protected SelectOptitem createElement() {
		return new SelectOptitem();
	}

	@Override
	public SelectOption append(Object option) {
		addElement((SelectOptitem)option);
		return this;
	}

}
